package com.central.comment.pojo.comment

import com.central.common.model.CommentVo
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.time.LocalDateTime


@ApiModel("添加评论参数")
data class CommentDto(

    @ApiModelProperty("评论内容") var content: String? = "",
    @ApiModelProperty("上级id") var pid: Long? = 0L,
    @ApiModelProperty("帖子id") var relevanceId: Long? = null,
    @ApiModelProperty("评论类型") var type: Int? = 0,
)

@ApiModel("上新评论实体")
data class CommentGoodVo(

    @ApiModelProperty("id") var id: Long? = null,
    @ApiModelProperty("评论内容") var content: String? = "",
    @ApiModelProperty("评论人id") var userId: Long? = null,
    @ApiModelProperty("评论人头像") var avtar: String? = null,
    @ApiModelProperty("评论人昵称") var userName: String? = "",
    @ApiModelProperty("评论时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") var createTime: LocalDateTime? = null,
    @ApiModelProperty("回复实体") var commentReply: List<CommentVo>
)


